package org.example.workbench.controller;

import org.example.workbench.domain.Funnel;
import org.example.workbench.service.TranService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/chart")
public class chartController {
    @Autowired
    private TranService tranService;
    @RequestMapping("/TransactionIndex")
    public String TransactionIndex(){
        return "workbench/chart/transaction/index";
    }

    @RequestMapping("/getStageAndStageNumber")
    public @ResponseBody Object getStageAndStageNumber(){
        return tranService.getStageAndStageNumber();
    }
}
